This sample accompanies chapter 2 of the book "Embedded Controller - Grundlagen und praktische Umsetzung fr industrielle Anwendungen" by Rdiger R. Asche.

Target Hardware: ST Microelectronis STM32429I Eval Board

To build:
- Open fibtest_noos_gcc_stlink.xjrf from the STM32F4-eval subdirectory with WinIdea Open.
- Select Rebuild from the Project menu.

To run:
- Connect the target to a USB port on your debug host.
- Set a break point at the end of the main() function.
- Select "Run" from the Debug\Run Control Sub Menu.
- Once the breakpoint is hit, analyze the global variable g_FibonacciResults.

See the book reference mentioned above for usage.

Observe the disclaimer in main.c.

Measurements for different optimization levels can be obtained by navigating through the Projects/Settings/Compiler tab, then locating and selecting fibonacci.c in the source file tree on the right hand side and changing the -Ofast compile option to another desired option (eg -O1, -O2 or -O0).

The results of the different configurations have been recorded in the text files in this directory. To save the values of g_FibonacciResults, add the variable to the watches, right click the entry, then select Expand Full and Save the values with the Save option.





